package com.hightemperator.dao;

import com.hightemperator.po.Circle;
import com.hightemperator.po.CircleAndUserMessage;
import com.hightemperator.po.CircleExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CircleMapper {
    int countByExample(CircleExample example);

    int deleteByExample(CircleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Circle record);

    int insertSelective(Circle record);

    List<Circle> selectByExample(CircleExample example);

    Circle selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Circle record, @Param("example") CircleExample example);

    int updateByExample(@Param("record") Circle record, @Param("example") CircleExample example);

    int updateByPrimaryKeySelective(Circle record);

    int updateByPrimaryKey(Circle record);

    List<CircleAndUserMessage> getCircleListForId(@Param("id") Integer id, @Param("begin") Integer begin, @Param("end") Integer end);

    List<CircleAndUserMessage> getCircleMessageList(Map<String, Object> param);

}